package com.haruhi.service;

import com.haruhi.entity.UploadingFile;

import java.util.List;

public interface UploadingFileService {

    int insert(UploadingFile uploadingFile);

    List<UploadingFile> getByCondition(UploadingFile uploadingFile);

    int deleteByMD5(String md5,boolean isDel);

    /**
     * 更新chunk
     * @param uploadingFile
     * @param condition
     * @return
     */
    int updateChunkByMD5(UploadingFile uploadingFile, UploadingFile condition);
}
